﻿
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="bookmeetprototype.browseb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <ul class="breadcrumb">
    <li><a id="A1" runat="server" href="~/Default.aspx">Home</a> <span class="divider">/</span></li>
    <li><a id="A2" runat="server" href="~/discover.aspx">Discover</a> <span class="divider">/</span></li>
    <li class="active">Book List</li>
    </ul>

    <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" 
        DataSourceID="SqlDataSource2" RepeatColumns="4" 
        RepeatDirection="Horizontal" Width="653px">
        <ItemTemplate>
           <div style="margin:10px 10px 10px 10px;"><asp:HyperLink ToolTip='<%# Eval("Title") %>' runat="server" NavigateUrl='<%# "detail.aspx?ID=" + Eval("ID").ToString() %>' ><asp:Image ID="Image1" CssClass="templateimagefield" NullImageUrl="~/img/no_image.jpg" runat="server" ImageUrl='<%# Eval("imgurl") %>' /></asp:HyperLink>
        </div></ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BookMeetConnString %>" 
        ProviderName="<%$ ConnectionStrings:BookMeetConnString.ProviderName %>" 
        SelectCommand="SELECT [Title], [Author], [PublicationDate], [Pages], [Publisher], [AverageRating], [imgurl], [thumburl], [ID] FROM [booklist]">
    </asp:SqlDataSource>

</asp:Content>
<asp:Content ID="SidebarContent" runat="server" ContentPlaceHolderID="SidebarContent">
   <ul class="nav nav-list">
              <li class="nav-header">Account</li>
              <li><a id="A3" runat="server" href="~/Account/Register.aspx">Register</a></li>
              <li><a id="A4" runat="server" href="~/Account/editprofile.aspx">Edit Profile</a></li>
              <li><a id="A5" runat="server" href="~/Account/signupbc.aspx">Book Club Registration</a></li>
              <li class="nav-header">Superuser</li>
              <li><a id="A6" runat="server" href="~/ArticleAdmin.aspx">Write Articles</a></li>
              <li class="nav-header">Miscellaneous</li>
              <li><a id="A7" runat="server" href="~/rss.ashx">RSS Feed</a></li>
              <li><a id="A8" runat="server" href="~/browsem.aspx">Search Users</a></li>
              <li><a id="A9" runat="server" href="~/browsec.aspx">Search Book Clubs</a></li>
              <li><a id="A10" runat="server" href="~/bookshelf.aspx">Your Bookshelf</a></li>
              <li><a id="A11" runat="server" href="~/faq.aspx">FAQs</a></li>
              <li class="nav-header">The Author Speaks..</li>
              <li><blockquote><p>“I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.”</p>
    <small><cite title="Source Title">Hunter S. Thompson</cite></small>
    </blockquote></li>
    </ul>
</asp:Content>